(function(e){var t="placeholder"in document.createElement("input"),n=e.browser.opera&&e.browser.version<10.5;e.fn.placeholder=function(r){var r=e.extend({},e.fn.placeholder.defaults,r),i=r.placeholderCSS.left;return t?this:this.each(function(){var t=e(this),s=e.trim(t.val()),o=t.width(),u=t.height(),a=this.id?this.id:"placeholder"+ +(new Date),f=t.attr("placeholder"),l=e('<label class="placeholder" for='+a+">"+f+"</label>");r.placeholderCSS.width=o,r.placeholderCSS.height=u,r.placeholderCSS.left=!n||this.type!="email"&&this.type!="url"?i:"11%",l.css(r.placeholderCSS),t.wrap(r.inputWrapper),t.attr("id",a).after(l),s&&l.hide(),t.keydown(function(){e.trim(t.val())||l.hide()}),t.blur(function(){e.trim(t.val())||l.show()})})},e.fn.placeholder.defaults={inputWrapper:'<span style="position:relative"></span>',placeholderCSS:{}}})(jQuery)